package com.huawei.appgallery.search.ui.card;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout.LayoutParams;
import o.azb;
import o.cuv.a;
import o.cuv.d;
import o.ContentManager;

public class SearchRelateThemeCard extends SearchRelateThemeListCard {
    public SearchRelateThemeCard(Context context) {
        super(context);
    }

    public BaseCompositeItemCard ˋ() {
        return new SearchRelateThemeListItemCard(this.ʼॱ);
    }

    public int ᐝ() {
        return 1;
    }

    protected boolean ˎ(String str, int i) {
        return false;
    }

    protected void ॱ(boolean z) {
        View ʼ = ʼ();
        if (!(ʼ == null || ˉ() == null)) {
            Context ˋ = ContentManager.getInstant().getContext();
            LayoutParams layoutParams = (LayoutParams) ʼ.getLayoutParams();
            layoutParams.setMarginStart(azb.ˊ(ˋ));
            layoutParams.setMarginEnd(azb.ˏ(ˋ));
            layoutParams.height = ˋ.getResources().getDimensionPixelSize(a.ʽ);
            ʼ.setLayoutParams(layoutParams);
            ʼ.setBackgroundColor(ˋ.getResources().getColor(d.ॱ));
        }
        super.ॱ(z);
    }
}
